﻿create proc thuan_qtdanhmucCommandsua  
@ID int,  
@DienGiai nvarchar(255)  
as  
if exists(select * from DanhMuc_Command Where IDCN<>@ID and CommandName=@DienGiai)  
begin  
select ErrCode=0  
end  
else  
begin  
update DanhMuc_Command set CommandName=@DienGiai WHere IDCN=@ID  
select ErrCode=1  
end